s = """1->2->3->4->5"""
arr = s.split("->")
arr = [int(a) for a in arr]
print(arr)
print(sorted(arr, reverse=True))
